package com.example.messagemodule;

import android.content.Context;

import com.examination.mlib.constants.AllStringConstants;
import com.example.messagemodule.network.MessageNetWorkApi;
import com.examination.mlib.interfaceapi.NetWorkCallBack;
import com.yilijk.base.network.RequestParams;
import com.yilijk.base.network.https.HttpCallBack;
import com.yilijk.base.network.https.HttpUtils;
import com.yilijk.base.network.https.interceptor.NetWorkUtils;
import com.yilijk.base.utils.CommonUtils;
import com.yilijk.base.utils.DevicesUtils;

import org.json.JSONException;
import org.json.JSONObject;

public class MessageNet {

    public static void entryIm(Context context,long doctorPassportId, HttpCallBack httpCallBack){
        RequestParams jsonObject = new RequestParams();
        jsonObject.put("doctorPassportId",doctorPassportId);
        HttpUtils.get(AllStringConstants.entryImUrl,jsonObject,httpCallBack);
    }

    public static void getUserInfoList(Context context,String doctorImAccounts,HttpCallBack httpCallBack){
        RequestParams params = null;
        try {
            params = new RequestParams(doctorImAccounts);
        } catch (JSONException e) {
            e.printStackTrace();
        }
        HttpUtils.get(MessageNetWorkApi.getUserInfo,params,httpCallBack);
    }
}
